const fs = require('fs');
const path = require('path');
const { compileFunction } = require('vm');
const filePath = path.join(__dirname,'2.txt')
fs.writeFile(filePath,'hello world',function(err){
    if(err){
        console.log(err);
    }
})
console.log('同步代码执行')
fs.writeFileSync(path.join(__dirname,'/3.txt'),"123456")